<%@ taglib prefix="from" uri="http://www.springframework.org/tags/form" %>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<section class="panel" style="height: 100%">
    <ul class="nav nav-tabs">
        <li class="active">
            <a href="#" onclick="loadDiv('mainCenterDiv','${ctx}/doctor/liveRequisition/hospitalRegistrFrom')">患者登记</a>
        </li>
        <li>
            <a href="#" onclick="loadDiv('rightCenterDiv','${ctx}/nurse/newbornRec/bornrecInfo')">新生儿患者登记</a>
        </li>
    </ul>



    <%--右侧新生儿展示列表--%>
    <section class="main-content col-lg-13">
        <div class="content-wrap" id="rightCenterDiv">
            <div class="panel-body">
                <div class="table-responsive no-border">
                    <div class="datatable-top">
                        <div class="pull-left">
                            <form:form id="searchForm" modelAttribute="liveRequisition"  onsubmit="return loadDivForm('mainCenterDiv','searchForm','${ctx}/doctor/liveRequisition/hospitalRegistrFrom');" method="post" class="form-inline">
                                <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
                                <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
                                <label>患者姓名 ：</label><form:input cssStyle="width: 100px;" path="name" htmlEscape="false" maxlength="50" class="form-control" /> &nbsp;&nbsp;&nbsp;
                                <label>性别 ：</label>
                                <form:select cssStyle="width: 100px;" path="sex" maxlength="50" class="form-control">
                                    <from:option value="" label=""/>
                                    <form:options items="${fns:getDictList('SEX_DICT')}"  htmlEscape="false" itemLabel="label" itemValue="value"/>
                                </form:select>
                                <label>身份证号：</label>
                                <form:input path="idNo" htmlEscape="false" maxlength="50" class="form-control" /> &nbsp;&nbsp;&nbsp;
                                <input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
                            </form:form>
                        </div>
                    </div>
                    <table id="contentTable" class="table table-bordered mg-t datatable">
                        <thead>
                        <tr>
                            <th>姓名</th>
                            <th>性别</th>
                            <th>身份证号</th>
                            <th>出生日期</th>
                        </tr>
                        </thead>
                        <tbody>
                        <c:forEach items="${page.list}" var="liveRequisition" varStatus="coun">
                            <tr style="cursor: pointer" onclick = searchRight11('${liveRequisition.clinicId}','${liveRequisition.id}')>
                                <td> ${liveRequisition.name} </td>
                                <td> ${fns:getDictLabels(liveRequisition.sex, 'SEX_DICT', '')} </td>
                                <td> ${liveRequisition.idNo} </td>
                                <td> <fmt:formatDate value="${liveRequisition.birthdayDate}" pattern="yyyy-MM-dd"/> </td>
                            </tr>
                        </c:forEach>
                        </tbody>
                    </table>
                    <div class="pagination">${page}</div>
                </div>
            </div>

            <%--<div class="wrapper" style="bottom: 50px;">--%>
            <%--<ul class="nav nav-tabs">--%>
            <%--<li class="active">--%>
            <%--<a href="#" onclick="loadDiv('rigthCenterDiv','${ctx}/doctor/hospitalRegistr/hospitalRegistr')">患者登记</a>--%>
            <%--</li>--%>
            <%--<li class="active">--%>
            <%--<a href="#" onclick="loadDiv('rigthCenterDiv','${ctx}/doctor/bornrecInfo/getbornrecInfo')">新生儿患者登记</a>--%>
            <%--</li>--%>
            <%--</ul>--%>
            <%--</div>--%>
        </div>
    </section>
</section>
